package com.suke.controller;

import com.suke.pojo.SiteInfo;
import com.suke.service.SiteInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author Li Sipeng
 * @version 4.1 on   2022-11-28 12:38
 */
@RestController
@CrossOrigin
@RequestMapping("/siteinfo")
public class SiteInfoController {
    @Autowired
    private SiteInfoService siteinfoservice;

    /**
     * 根据资产id返回资产对象
     * */
    @RequestMapping("/findbyid")
    public SiteInfo findById (Integer id){
        SiteInfo siteinfo = siteinfoservice.findById(id);
        return siteinfo;
    }

}
